﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage<YABE.Models.Post>" ValidateRequest="false"%>
<%@ Import Namespace="Microsoft.Web.Mvc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
<script type="text/javascript" src="<%=ResolveUrl("~/Content/FckEditor/fckeditor.js")%>"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<% using (Html.BeginForm())
   { %>
    <div id="edit">
    <%=Html.ValidationSummary() %>
    <p>
    
        <label>Title<br /> <input id="title" name="title" type="text" size="50" value="<%=ViewData.Model.Title %>"/></label>
        <%=Html.ValidationMessage("PostTitleEmpty", "*")%>
    </p>
    <p>
        <label>Author<br /> <input id="author" name="author" type="text" size="50" value="<%=ViewData.Model.Author%>"/></label>
    </p>
    <p>
        <label>Description<br /> <input id="description" name="description" type="text" size="100" value="<%=ViewData.Model.Description %>"/></label>
    </p>
    <p>
        <label>Tags <small>(comma separated)</small><br /> <input id="tags" name="tags" type="text" size="50"/></label>
    </p>
    </div>
    <div id="editbody">
    <p>
        <label>Body<br /></label> 
	    <script type="text/javascript">
            <!--
            // Automatically calculates the editor base path based on the _samples directory.
            // This is usefull only for these samples. A real application should use something like this:
            // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
            var sBasePath = '<%=ResolveUrl("~/Content/FckEditor/")%>';

            var oFCKeditor = new FCKeditor( 'body' ) ;
            oFCKeditor.BasePath	= sBasePath ;
            oFCKeditor.Height	= 500 ;
            //oFCKeditor.Value = 'Typically in data mining you are looking for patterns in data that has already been collected and saved.&nbsp; In essence, you are looking back in time to discern patterns to either explain what happened or to make future predictions based on that information.<br><br>But in some applications one needs to do continuous online processing of data.&nbsp; This is prevalent in fraud and intrusion detection systems.&nbsp; In these scenarios, you are often processing and acquiring data in real-time and making decisions based on this new data and past information.&nbsp;&nbsp; <br><br>To assist&nbsp; in building systems which can support this capability there has been active research into stream processing systems or data managers.&nbsp; In these systems one can run a query that runs continuously as opposed to a moment at time.&nbsp; This allows one to build some sort of monitoring system on top of the stream processor.<br><br>This seems like a farily new area and I am not sure what the state of the art is, as we typically don\'t see these capabilities integrated into commercial DBMS systems.&nbsp; <br>I have found the following academic projects that deal with Stream Processing.<br><br><a href="http://infolab.stanford.edu/stream/index.html">Stanford Stream Data Manager</a><a href="http://wis.cs.ucla.edu/stream-mill/index.html"> </a><br><a href="http://wis.cs.ucla.edu/stream-mill/index.html">Stream Mill</a><br><a href="http://maids.ncsa.uiuc.edu/">MAIDS</a><br><br>In addition, there appear to be some commercial products that are similar to the above.&nbsp; If anyone has used any of these systems or built applications on this type of technology, I would be interested to hear about it.<br><br><b>Update<br><br></b>I have found some additional stream management systems so I wanted to update my list here.<br><br><a href="http://www.cs.cornell.edu/database/cougar/index.php">Cougar</a><br><a href="http://www.cs.brown.edu/research/aurora/">Aurora</a><br>Borealis<br><a href="http://www.research.att.com/%7Ekfisher/hancock/manual.pdf">Hancock</a><br>Niagra<br>OpenCQ<br>Tapestry<br>Telegraph<br>Tribeca<br>Gigascope<br>';

            //oFCKeditor.Value	= '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
            oFCKeditor.Value = '<%=ViewData.Model.Body.Replace("'","\\'").Trim().Replace("\r\n"," ").Replace("\n"," ")%>';
            
            oFCKeditor.Create();
            
            //-->
	    </script>
	<%=Html.ValidationMessage("PostBodyEmpty", "*")%>
    </p>
    </div>	
    <div id="commentsApproval">
       <asp:ListView ID="commentsList" runat="server">
        <LayoutTemplate>
            <div id="comment">
                <asp:PlaceHolder ID="itemPlaceholder" runat="server"/>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <h3>by <%# Eval("Author") %></h3>
            <p id="commentorEmail"><strong>Email: </strong>
            <%#Eval("Email") %>
            </p>
            <p id="commentorUrl"><strong>Url: </strong>
              <%#Eval("Url")%>
            </p>
            <p id="commentorIP"><strong>Client IP</strong>
              <%#Eval("ClientIP") %>
            </p>
            <p id="commentorDateAdded"><strong>Created: </strong>
              <%#Eval("Created") %>
            </p>
            <p id="commentorIsApproved">
              <input type="checkbox" id="<%#"ckb"+Eval("CommentID") %>" <%# Eval("IsApproved").ToString()=="True"?"checked='Checked'":String.Empty%>  name="<%#"ckb"+Eval("CommentID") %>">Approved? </input>
            </p>
            <p id="body">
                <%# Eval("Comments") %>
            </p>
        </ItemTemplate>        
    </asp:ListView>
    </div>
	<input id="save" type="submit" value="submit" />
<% } %>

</asp:Content>
